<?php /* Smarty version 2.6.26, created on 2011-07-18 22:21:19
         compiled from client.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'cycle', 'client.tpl', 13, false),)), $this); ?>
<form name="searchForms">
    First name: <input type="text" name="name" onkeyup="queryDB('searchForms','<?php echo $this->_tpl_vars['page']->getPageName(); ?>
')"/><br />
    Last name: <input type="text" name="surname" onkeyup="queryDB('searchForms','<?php echo $this->_tpl_vars['page']->getPageName(); ?>
')" />
    <input type="button" name="action" value="Szukaj"  />
</form>
<div id="grid">
    <table>
        <tr>
            <td>ID</td><td>Imię</td><td>Nazwisko</td><td>Email</td>
        </tr>
<?php $_from = $this->_tpl_vars['clients']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['myId'] => $this->_tpl_vars['i']):
?>
<?php echo '<tr bgcolor="'; ?><?php echo smarty_function_cycle(array('values' => "#aaaaaa,#bbbbbb"), $this);?><?php echo '"><td>'; ?><?php echo $this->_tpl_vars['i']['client_id']; ?><?php echo '</td><td>'; ?><?php echo $this->_tpl_vars['i']['name']; ?><?php echo '</td><td>'; ?><?php echo $this->_tpl_vars['i']['surname']; ?><?php echo '</td><td>'; ?><?php echo $this->_tpl_vars['i']['email']; ?><?php echo '</td></tr>'; ?>

<?php endforeach; endif; unset($_from); ?>
    </table>
<?php echo $this->_tpl_vars['page']->getPage(); ?>

    <form name="actionForm" action="index.php" method="POST">
        <input type="hidden" name="source" value="<?php echo $this->_tpl_vars['page']->getPageName(); ?>
"/>
        <input type="hidden" name="page" value="<?php echo $this->_tpl_vars['page']->getPage(); ?>
"/>
        <input type="submit" name="action" value="Next" />

        <input type="submit" name="action" value="Previous" />

    </form>
</div>